$(function(){
//	var json1 = {"success":true,"statusCode":"200","data":[{"id":"145646909615892","hxArticleCat":null,"title":"啊啊啊啊啊啊啊啊啊啊啊啊","summary":"啊啊啊啊啊啊啊啊","source":"啊啊啊啊啊啊啊啊","editor":"啊啊啊啊啊啊啊啊啊啊","imgUrl":"http://127.0.0.1:8080/HXManager/upload/2016226/image/1456469090549265.jpg,http://www.baidu.com","status":"1","createTime":"2016-02-26","updateTime":"2016-02-26"}],"attribute":{"id":"","status":"1","paramMap":{},"pageNo":"1","criteriaQuery":{"curPage":1,"pageSize":10,"criterionList":[],"detachedCriteria":{"alias":"this"},"flag":true,"field":"","entityClass":null,"results":null,"total":0,"map":{"status":1}},"pageSize":"1","cid":""}};
//	var $varietyContent = $("#json1"),
//  	varietyHtml = template("json1", json1);
//	$("#json1").html(varietyHtml);
	
//	var json2 = {  
//            title: '标签',  
//            list: ['a', 'b', 'c', 'd', 'e', 'f', 'g'],
//            data:{name:'w,t,y'}
//    };  
//	var $varietyContent = $("#json2"),
//  	varietyHtml = template("json2", json2);
//	$varietyContent.html(varietyHtml).attr("display","block");
	
	
	template.helper("xx", function(a){  
        return 10 + "--" + a;  
    });  
    var data = {  
        n: 123  
    };  
    var html = template("json3", data);  
    document.getElementById("json2").innerHTML = html;  
})